package com.qzxy.premiumhotelsystem.service;

import com.qzxy.premiumhotelsystem.domain.dto.RoomProDTO;
import com.qzxy.premiumhotelsystem.domain.dto.RoomStockPageDTO;
import com.qzxy.premiumhotelsystem.domain.dto.RoomsDTO;
import com.qzxy.premiumhotelsystem.domain.dto.RoomsPageDTO;
import com.qzxy.premiumhotelsystem.domain.entity.Rooms;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qzxy.premiumhotelsystem.common.result.PageResult;
import com.qzxy.premiumhotelsystem.common.result.Result;
import com.qzxy.premiumhotelsystem.domain.vo.RoomsVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qzxy.premiumhotelsystem.common.result.PageResult;
import com.qzxy.premiumhotelsystem.common.result.Result;
import com.qzxy.premiumhotelsystem.domain.dto.RoomsDTO;
import com.qzxy.premiumhotelsystem.domain.dto.RoomsPageDTO;
import com.qzxy.premiumhotelsystem.domain.entity.Rooms;

/**
* @author 14912
* @description 针对表【rooms】的数据库操作Service
* @createDate 2024-09-12 15:55:14
*/
public interface RoomsService extends IService<Rooms> {

    Result addRoom(RoomsDTO roomsDTO);

    Result selectByRoomId(Integer roomId);


    Result<PageResult> pageQuery(RoomsPageDTO roomsPageDTO);

    void updateRoomStatusByRoomNumber(String roomNumber, String status);

    Result getRoomStatusList();

    Result countRooms();

    /**
     * 查询所有
     * @return
     */
    List<RoomProDTO> allList();
    Result getRoomsInType(Integer roomTypeId);

}
